{% extends "myghtyboard/base.html" %}
{% load i18n %}
{% block crumb %}<a href="/forum/">{% trans "Forum Index" %}</a>{% endblock %}
{% block pagemenu %}
{% endblock %}

{% block extra-title %}{% trans "Forum Index" %}{% endblock %}
{% block your-position %}<a href="/forum/">{% trans "Forum Index" %}</a>{% endblock %}

{% block content %}

<div id="page-container">
                        <!-- Lewa kolumna START -->
                            <!-- Kategoria #1 -->

{% comment %}
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span></span>
                                        </span>
                                    </div>
                                    <div class="box-content">
				    
                                        <div class="line">
                                            <span class="icon-forum">
					    {% if forum.isNew %}
					    <img alt="new posts" src="/site_media/css/gfx/icons/new-posts-white.gif" /></span>
					    {% else %}
					    <img alt="no new posts" src="/site_media/css/gfx/icons/no-posts-white.gif" /></span>
					    {% endif %}
					    
                                            <span class="content">
                                                <a href="forum-single-post.html"><strong>Zebranie podsumowujące rok akademicki 2008/2009</strong></a><br />
                                                <span class="color-gray"><strong>Autor:</strong> Jan Nowacki</span>
                                            </span>
                                            <span class="button-border buttons"><span class="button"><a href="forum-single-post.html">czytaj</a></span></span>
                                            <span class="last-answers">
                                                <strong>Ostatnia wypowiedź</strong><br />
                                                <span class="color-gray">Jan Nowacki</span> <span class="color-orange">»</span> <span class="color-gray">dzisiaj, 11:56</span>
                                            </span>
                                        </div>
					{% if not forloop.last %}
                                        <hr />
					{% endif %}
					{% endfor %}
                                        <div class="line">
                                            <span class="icon-forum"><img alt="new posts" src="/site_media/css/gfx/icons/new-posts-white.gif" /></span>
                                            <span class="content">
                                                <a href="forum-single-post.html"><strong>Lista projektów na rok 2008/2009</strong></a><br />
                                                <span class="color-gray"><strong>Autor:</strong> Jan Nowacki</span>
                                            </span>
                                            <span class="button-border buttons"><span class="button"><a href="forum-single-post.html">czytaj</a></span></span>
                                            <span class="last-answers">
                                                <strong>Ostatnia wypowiedź</strong><br />
                                                <span class="color-gray">Jan Nowacki</span> <span class="color-orange">»</span> <span class="color-gray">wczoraj, 12:17</span>
                                            </span>
                                        </div>
                                        <hr />
                                        <div class="line">
                                            <span class="icon-forum"><img alt="no new posts" src="/site_media/css/gfx/icons/no-posts-white.gif" /></span>
                                            <span class="content">
                                                <a href="forum-single-post.html"><strong>Nowe władze sekcji</strong></a><br />
                                                <span class="color-gray"><strong>Autor:</strong> Jan Nowacki</span>
                                            </span>
                                            <span class="button-border buttons"><span class="button"><a href="forum-single-post.html">czytaj</a></span></span>
                                            <span class="last-answers">
                                                <strong>Ostatnia wypowiedź</strong><br />
                                                <span class="color-gray">Jan Nowacki</span> <span class="color-orange">»</span> <span class="color-gray">05/09/2009, 00:54</span>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>{% endcomment %}
                            <!-- Kategoria #1 Koniec -->
{% for cat in categories %}
                            <!-- Kategoria #2 -->
			    
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>{{ cat.name }}</span>
                                        </span>
                                    </div>
                                    <div class="box-content">
				    {% for forum in cat.forums %}
                                        <div class="line">
                                            <span class="icon-forum">
					    {% if forum.isNew %}
					    <img alt="new posts" src="/site_media/css/gfx/icons/new-posts-white.gif" /></span>
					    {% else %}
					    <img alt="no new posts" src="/site_media/css/gfx/icons/no-posts-white.gif" /></span>
					    {% endif %}
                                            <span class="content">
                                                <a href="/forum/forum/{{ forum.id }}/"><strong>{{ forum.name }}</strong></a><br />
                                                <span class="forum-topics"><span class="color-orange">»</span> <span class="color-gray"><strong>Tematy:</strong> {{ forum.getTopics }}</span></span>
                                                <span class="forum-answers"><span class="color-orange">»</span> <span class="color-gray"><strong>Wypowiedzi:</strong> {{ forum.getPosts }}</span></span>
                                            </span>
                                            <span class="button-border buttons"><span class="button"><a href="/forum/forum/{{ forum.id }}/">otwórz</a></span></span>
                                            <span class="active-topic">
                                                <strong>Aktywny temat</strong><br />{% if forum.lasttopic %}
						<span class="color-gray"><a href="/forum/topic/{{ forum.lasttopic.last_post.post_page }}/{{ forum.lasttopic.id }}/#post_{{ forum.lasttopic.last_post.id }}">{{ forum.lasttopic|safe }}</a></span> <span class="color-orange">»</span> <span class="color-gray">{{ forum.lasttopic.last_post.author_system }}, {{forum.lasttopic.last_post.date|date:"d/m/Y G:i" }}</span>
						{% else %}<span class="color-gray">{% trans "No topics in this forum" %}</span>{% endif %}
                                            </span>
                                        </div>
					{% if not forloop.last %}
                                        <hr />
					{% endif %}
				    {% endfor %}
                                    </div>
                                </div>
                            </div>
                            <!-- Kategoria #2 Koniec -->
{% endfor %}
                        <!-- Lewa kolumna KONIEC -->
                </div>
                <div id="page-container-2">
                        <!-- Prawa kolumna START -->                        
			<div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>Opcje</span>
                                        </span>
                                        <span class="box-header-icons">
                                            <img class="box-header-minimize" alt="minimize" src="/site_media/css/gfx/icons/minimize-transparent.png" />
                                            <img class="box-header-close" alt="close" src="/site_media/css/gfx/icons/close-transparent.png" />
                                        </span>
                                    </div>
                                    <div class="box-content">
                                        <p class="line">
                                            <span class="content">
                                                <span class="button"><a href="/forum/mark_all_read/">{% trans "Oznacz wszystkie fora jako przeczytane" %}</a></span>
                                            </span>
                                        </p>
                                    </div>
                                </div>
                            </div>
                            <!-- Ostatnie tematy -->
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>Najnowsze tematy</span>
                                        </span>
                                        <span class="box-header-icons">
                                            <img class="box-header-minimize" alt="minimize" src="/site_media/css/gfx/icons/minimize-transparent.png" />
                                            <img class="box-header-close" alt="close" src="/site_media/css/gfx/icons/close-transparent.png" />
                                        </span>
                                    </div>
                                    <div class="box-content">
				    {% for topic in hot_topics %}
                                        <p class="line">
                                            <span class="content">
                                                <strong class="tag-normal"><a href="/forum/topic/1/{{ topic.id }}">{{ topic.name }}</a></strong><br />
                                                <span class="color-gray">{{ topic.forum.category.name }}</span> <span class="color-orange">»</span> <span class="color-gray"><a href="/forum/forum/{{ topic.forum.id }}">{{ topic.forum.name }}</a></span>
                                            </span>
                                            <span class="icons">
                                                <a href="/forum/topic/{{ topic.forum.id }}/{{ topic.id }}"><img class="icon-show" alt="show" src="/site_media/css/gfx/icons/show-white.gif" /></a>
                                            </span>
                                        </p>
					{% if not forloop.last %}
                                        <hr />
					{% endif %}
				    {% endfor %}
                                    </div>
                                </div>
                            </div>
                            <!-- Ostatnie tematy KONIEC -->
			    
                            <!-- Ostatnie posty -->
                            <div class="box-shadow">
                                <div class="box">
                                    <div class="box-header">
                                        <span class="box-header-title">
                                            <img class="box-header-pointer" alt="pointer" src="/site_media/css/gfx/icons/point-transparent.png" />
                                            <span>Najnowsze wypowiedzi</span>
                                        </span>
                                        <span class="box-header-icons">
                                            <img class="box-header-minimize" alt="minimize" src="/site_media/css/gfx/icons/minimize-transparent.png" />
                                            <img class="box-header-close" alt="close" src="/site_media/css/gfx/icons/close-transparent.png" />
                                        </span>
                                    </div>
                                    <div class="box-content">
				    {% for topic in hot_posts %}
                                        <p class="line">
                                            <span class="content">
                                                <strong class="tag-normal color-orange"><a href="/forum/topic/{{ topic.first_unread.post_page }}/{{ topic.id }}/#post_{{ topic.first_unread.id }}">{{ topic.name }}</a></strong><br />
                                                <span class="color-gray">{{ topic.forum.category.name }}</span> <span class="color-orange">»</span> <span class="color-gray"><a href="/forum/forum/{{ topic.forum.id }}">{{ topic.forum.name }}</a></span>
                                            </span>
                                            <span class="icons">
                                                <a href="/forum/topic/{{ topic.first_unread.post_page }}/{{ topic.id }}/#post_{{ topic.first_unread.id }}"><img class="icon-show" alt="show" src="/site_media/css/gfx/icons/show-white.gif" /></a>
                                            </span>
                                        </p>
					{% if not forloop.last %}
                                        <hr />
					{% endif %}
				    {% endfor %}
                                    </div>
                                </div>
                            </div>
                            <!-- Ostatnie posty KONIEC -->
                            <!-- Prawa kolumna KONIEC -->
                </div>


{% endblock %}
